package com.chen.dao;

import com.chen.pojo.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TagDao {

    int saveTag(Tag tag);

    Tag getTagByName(String name);

    Tag getTag(Long id);

    List<Tag> listTag();

    int updateTag(Long id, String name);

    void deleteTag(Long id);

}
